package wei.xinya.springTransaction.entity;

public class Sale {
    private Integer id;
    private Integer goodsId;
    private Integer nums;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(Integer goodsId) {
        this.goodsId = goodsId;
    }

    public Integer getNums() {
        return nums;
    }

    public void setNums(Integer nums) {
        this.nums = nums;
    }

    public Sale() {
    }

    public Sale(Integer goodsId, Integer nums) {
        this.goodsId = goodsId;
        this.nums = nums;
    }

    public Sale(Integer id, Integer goodsId, Integer nums) {
        this.id = id;
        this.goodsId = goodsId;
        this.nums = nums;
    }

    @Override
    public String toString() {
        return "Sale{" +
                "id=" + id +
                ", goodsId=" + goodsId +
                ", nums=" + nums +
                '}';
    }
}
